/**
 * 
 */
package myth.cc.label;

import myth.cc.bean.Label;

/**
 * @author Biao Zhang
 *
 */
public class CommentHeader {
	private  LabelExporter labelExporter = null;
	
	/**
	 * The default constructor
	 */
	public CommentHeader() {
		labelExporter = new LabelExporter();
	}
	
	/**
	 * Add a label to export
	 * @param label The label
	 */
	public void addLabel(Label label) {
		labelExporter.addLabel(label);
	}
	
	/**
	 * Export the comment header and all labels
	 * @return The string containing all informations
	 */
	public String export() {
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append(labelExporter.export());
		return stringBuffer.toString();
	}
}
